﻿using MediatR;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Reflection;

namespace Solution.Application.Injection
{
    public static class MediatR
    {
        public static void AddMediatR(this IServiceCollection services)
        {
            services.AddMediatR(Assembly.GetExecutingAssembly(), typeof(MediatR).Assembly);
        }
    }
}